package com.ck.company.service.impl;

import com.ck.company.service.CpSceneMiddleService;
import com.ck.dao.SceneMiddleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场景中屏
 *
 * @author linqiang
 * @date 2018-06-20 18:36
 */
@Service(value = "cpSceneMiddleService")
public class CpSceneMiddleServiceImpl implements CpSceneMiddleService {

    @Autowired
    private SceneMiddleMapper sceneMiddleMapper;

    /**
     * 根据url统计数量
     *
     * @param url              路径
     * @param sceneVersionList 场景版本号集合
     * @return 统计数量
     */
    @Override
    public int countByUrlAndSceneVersion(String url, List<String> sceneVersionList) {
        return sceneMiddleMapper.countByUrlAndSceneVersion(url, sceneVersionList);
    }
}
